import request from '@/utils/request'

// 查询失物招领列表
export function listLost(query) {
  return request({
    url: '/manage/lost/list',
    method: 'get',
    params: query
  })
}

// 查询失物招领详细
export function getLost(lostId) {
  return request({
    url: '/manage/lost/' + lostId,
    method: 'get'
  })
}

// 新增失物招领
export function addLost(data) {
  return request({
    url: '/manage/lost',
    method: 'post',
    data: data
  })
}

// 修改失物招领
export function updateLost(data) {
  return request({
    url: '/manage/lost',
    method: 'put',
    data: data
  })
}

// 删除失物招领
export function delLost(lostId) {
  return request({
    url: '/manage/lost/' + lostId,
    method: 'delete'
  })
}
